﻿using System;
using System.ComponentModel.DataAnnotations;
namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name:     Set
    /// Author:         Qiaonan Su 
    /// Creation Date:  2011-12-29
    /// Description:    基本信息设置（编号、上午上\下班时间、下午上\下班时间、最大迟到时间、每小时加班费、每小时迟到早退罚金、旷工请假每天扣费、备注）
    /// QA:             
    /// -----------------------------------------
    /// </summary>
    
    public class EssentialInfo
    {
        [Key]
        public int  ID { get; set; }

        [Required(ErrorMessage = "起始上班时间不能为空")]
        public int AmWorkTime { get; set; }

        [Required]
        public int AmOffDutyTime { get; set; }

        [Required]
        public int PmWorkTime { get; set; }

        [Required]
        public int PmOffDutyTime { get; set; }

        [Required]
        public int MaxLateTime { get; set; }

        [Required]
        public decimal  ExtraMoneyPerHour { get; set; }

        [Required]
        public decimal LeaveMoneyPerHour { get; set; }

        [Required]
        public decimal AbsenceMoneyPerDay { get; set; }

        [StringLength(200)]
        public string Remark { get; set; }
    }
}
